﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Tauren.Business.Entity.Input
{
    public class Button_Input
    {
        public Button_Input()
        {
            ChildFieldValues = new List<ButtonRes_InPut>();
        }

        public virtual long AutoId { get; set; }
        public virtual long? BtnId { get; set; }
        public virtual string Icon { get; set; }
        public virtual string Type { get; set; }
        public virtual string Size { get; set; }
        /// <summary>
        /// 按钮编码
        /// </summary>
        [Display(Name = "按钮编码"), Required(ErrorMessage = "{0}不能为空!"), StringLength(20, ErrorMessage = "{0}不超过30个字符"), RegularExpression(@"^([a-z0-9]){1,30}$", ErrorMessage = "请输入小写英文字符、数字组成的{0}")]

        public virtual string Value { get; set; }
        public virtual string Shape { get; set; }
        public virtual bool IsUseFlow { get; set; }
        public virtual double? Sequence { get; set; }
        public virtual string Location { get; set; }
        public virtual List<ButtonRes_InPut> ChildFieldValues { get; set; }
    }
}
